/*登录界面特效*/
* {
    padding: 0;
    margin: 0;
}

input {
    /*设置四个边框none*/
    outline: none;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    background-image: url(../images/background.jpeg);
    background-size: 100%, 100%;
}

/*最外层的大盒子*/
.box {
    width: 1050px;
    height: 600px;
    display: flex;
    position: relative;
    /*让大盒子级别最高*/
    z-index: 2;
    margin: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 4px 4px 3px rgba(0, 0, 0, .1);
}

form {
    margin: auto;
}

/*滑动的盒子*/
.pre-box {
    /*宽度为大盒子的一半*/
    width: calc(1050px / 2);
    height: 100%;
    /*距离大盒子左侧0*/
    left: 0;
    /*距离大盒子顶部0*/
    top: 0;
    position: absolute;
    border-radius: 4px;
    background-color: #2D2D2D;
    box-shadow: 4px 4px 3px rgba(0, 0, 0, .1);
    /*动画过度,先加速再减速*/
    transition: 0.5s ease-in-out;
}

.pre-box h1 {
    margin-top: 150px;
    text-align: center;
    letter-spacing: 5px;
    text-shadow: 4px 4px 3px rgba(0, 0, 0, .1);
    color: white;
}

.pre-box p {
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 4px 4px 3px rgba(0, 0, 0, .1);
    color: white;
}

.img-box {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 4px 4px 3px rgba(0, 0, 0, .1);
}

.img-box img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.login-form, .register-form {
    flex: 1;
    height: 100%;
}

.title-box {
    height: 150px;
    line-height: 200px;
}

.title-box h1 {
    text-align: center;
    /*设置左右间距*/
    letter-spacing: 5px;
    color: white;
    text-shadow: 4px 4px 3px rgba(0, 0, 0, .1);
}

.input-box {
    display: flex;
    flex-direction: column;
    /*纵向排列*/
    align-items: center;
}

input {
    width: 60%;
    height: 40px;
    margin-bottom: 20px;
    /*将段落的第一行缩进4px*/
    text-indent: 4px;
    border: 1px solid #b0cfe9;
    border-radius: 4px;
}

/*光标颜色*/
input:focus {
    color: #0b0b0b;
}

/*光标聚焦隐藏文字*/
input:focus::placeholder {
    opacity: 0;
}

.btn-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

button {
    width: 100px;
    height: 30px;
    margin: 0 7px;
    line-height: 30px;
    border: none;
    border-radius: 4px;
    background-color: #69b3f0;
    color: white;
}

button:hover {
    cursor: pointer;
    /*点击的透明度*/
    opacity: .8;
}

.btn-box p {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: white;
}

.btn-box p:hover {
    cursor: pointer;
    border-bottom: 1px solid white;
}

/*泡泡特效*/
body {
    position: relative;
    /*隐藏超出的元素*/
    overflow-x: hidden;
    height: 100vh;
}

span {
    position: absolute;
    z-index: 0;
    /*定位在下方*/
    bottom: 0;
    /*设置阴影效果*/
    background: radial-gradient(circle at 72% 28%, #fff 2px, #ff7edf 8%, #5b5b5b 8%, #aad7f9 100%);
    box-shadow: inset 0 0 6px #fff,
    inset 3px 0 6px #eaf5fc,
    inset 2px -2px 10px #efcde6,
    inset 0 0 60px #f9f6de,
    0 0 20px #fff;
    border-radius: 50%;
    /*设置自定义动画   infinite无限循环*/
    animation: myMove 4s infinite;
}

/*设置百分比动画*/
@keyframes myMove {
    0% {
        transform: translateY(0%);
        /*完全不透明*/
        opacity: 1;
    }
    50% {
        /*往右边移动百分之10*/
        transform: translate(10%, -1000%);
    }
    75% {
        /*往左边移动负百分之20,往上移动负百分之120*/
        transform: translate(-20%, -1200%)
    }
    99% {
        /*透明度百分之点9*/
        opacity: .9;
    }
    100% {
        /*移动y轴百分之180,放大1.5倍 然后消失*/
        transform: translateY(-1800%) scale(1.5);
        opacity: 0;
    }

}